package example.service.impl;

import example.dao.GoodstypeMapper;
import example.entity.Goodstype;
import example.service.GoodstypeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;

@Service
public class GoodstypeServiceImpl implements GoodstypeService {

    @Resource
    GoodstypeMapper goodstypeMapper;

    @Override
    public ArrayList<Goodstype> queryAll() {
        return goodstypeMapper.queryAll();
    }

    @Override
    public int deleteById(Integer id) {
        return goodstypeMapper.deleteById(id);
    }

    @Override
    public int update(Goodstype goodstype) {
        return goodstypeMapper.update(goodstype);
    }

    @Override
    public int save(Goodstype goodstype) {
        return goodstypeMapper.save(goodstype);
    }

}
